<?php
namespace App\Api\Web\Models;

use Illuminate\Database\Eloquent\Model;

class OrderHouse extends Model
{
    protected $table = 'order_house';

    protected $fillable = [
        'house_titile',
        'house_id',
        'stay_date',
        'main_img',
        'payment_method',
        'tenement_user_id',
        'landlord_user_id',
        'tenement_nickname',
        'landlord_nickname',
        'tenement_headimg',
        'landlord_headimg',
        'ding_total',
        'pay_total',
        'ding_integral',
        'total',
        'integral',
        'tenement_status',
        'landlord_status',
        'status',
        'ding_payment_txn',
        'payment_txn',
        'payment_at',
        'sure_rent_at',
        'ding_payment_at',
        'meet_time',
        'is_delete',
    ];


    static $contract = [
        '1' => '业主',
        '2' => '二房东',
        '3' => '公寓管家',
        '4' => '发布者',
        '5' => '室友',
        '6' => '中介',
        '7' => '其他',
    ];


    static $payment_method = [
        '1' => '月付',
        '2' => '季付',
        '3' => '半年付',
        '4' => '年付',
    ];

    static $status = [
        '-900' => '已删除',
        '-200' => '已取消',
        '-50' => '待划拨',
        '-100' => '待付定金',
        '100' => '定金看房',
        '200' => '已经看房',
        '300' => '确认租房',
        '400' => '完成订单',
    ];

    static $tenement_status = [
        '100' => '已交定金',
        '200' => '确认带看',
        '300' => '确认要租',
        '400' => '已付租金',
    ];

    static $landlord_status = [
        '100' => '已交定金',
        '200' => '确认带看',
        '300' => '确认出租',
        '400' => '确认收款',
    ];


}